Replaced events().key_char with set_accept

Added a input filter to the packets box