What is the infected file name, where was it found e.g. (C:\windows\system32\infected-file-name.xxx) ?
What Operating System are you using ?
Is your keyboard a USB or PS2 keyboard ?
Have you previously been able to use this keyboard during a boot-time scan ?
I suspect that you may be using a USB keyboard and windows XP, as for some reason XP/avast doesn't support USB keyboards during the boot-time scan.
You would also have to have USB devices enabled in the BIOS settings, I can't say where that is within the BIOS settings as the different manufacturers have different setups.