Added input script

Script to handle multiple callbacks on input events.