keypress fixes