from ursina import *
from ursina import Ursina, input_handler
app = Ursina(borderless=False)
input_handler.bind('z', 'w') # 'z'-key will now be registered as 'w'-key
input_handler.bind('left mouse down', 'attack') # 'left mouse down'-key will now send 'attack'to input functions
input_handler.bind('gamepad b', 'attack') # 'gamepad b'-key will now be registered as 'attack'-keydef input(key):
print('got key:', key)
if key == 'attack':
destroy(Entity(model='cube', color=color.blue), delay=.2)
app.run()