Working with input manager's mappings and listeners

This might be helpful: