switched to keypress