Implemented ActionMap(per) for input-control code.