add key callback functionality to input system