I'm creating a script for a special ability that is activated on the map. It activates when you press A, in which a small window appears with the bar of energy you have to use this skill. I've created a Window script and added my scene stuff in Scene_Map, but where do I put the code that detects input and deals with it? When I put it in the Window script or Scene_Map, I get errors.
