replaced event filter with key press event handler

the event filter function was replaced with a key press event handler
function - event filters are for other classes (for example a parent
widget) to monitor the events of several other widgets (children of
the parent)