Small fix with keypress halt event