FF: escape now works even if no keyboard component

also minor tweaks to keyboard.py