Create input.js

Input handlers for F-Chat 2.0