added action mapping to the input handler