Added modkey support to text input