move keypress event handlers into fsInput directive