Input handler work