correct the cap used for function keys to kfN not key_fN