Tests for ignoring keypress events