In this video, we learn to write an "if" statement that uses a keyboard key press to trigger some code, and use it to simulate damage to our character which reduces his health.
Here is a link to this complete tutorial playlist: https://www.youtube.com/playlist?list=PLauqgjJD9kQeqls6aqQcMvoMSlUdT4X1R