Get key pressed by caller, and check it