I am writing a simple program using shapes and keyboard control, and I started doing simple AI today for the enemies. I have my program now so that every time I press a key to move the box or shoot, it will then also move the enemy box. Is there a way for the enemy box to move without me pressing a key first, making the program do two things at once?(enemy box is moving and I am not pressing any keys to set everything in motion, ex. player movement, ai movement)