Trying to keypress. added missing method