 Hello and welcome to these minimal tutorials on Godot. Let's go ahead and create a 2d scene. I'm gonna call this Key move because we're gonna use a key on the keyboard to move a sprite Let's go ahead and drag our sprite in here. We're gonna attach a script to that. I'll just call it key move Not GD and now we're gonna have it check over and over again If a key is being pressed so what we're gonna do here is we're gonna say input Dot is and we have a few different options here We're gonna say action pressed is action pressed Make sure you don't select is action just pressed or is action just released We want to constantly check over and over again is an action pressed So we're gonna do that and it gives us a list here to choose from I'm gonna choose UI right Then I'm gonna say colon and we're gonna start this off with if I forgot to say that hope that doesn't confuse you So we're saying if this is true do whatever is on the next couple lines that are indented and we're going to Change the position of our sprite or player on the X plus equals one We'll hit F6. We'll save this scene And when it opens you see our sprite there and when I hit the right arrow He starts moving of course we can make him move faster or slower by changing that number the up down left right arrows Don't do anything Well, we can change that we can say if we can just copy this whole statement If input action so an input can be mouse keyboard joystick, but we're gonna change this to be left So you I underscore left and we want to go the other way So we're gonna say negative one F6 to run that left moves left right moves right I can close that window. We can do the same thing again. Let's go ahead and copy both of these and we're gonna say here Up actually, let's make that down and this one up and As we talked about in a previous video why is up and down so now we will F6 to run this and I can go Right I can go left and go up. I can go down and I can hit two keys right and Right and down left and up So we can move our sprite all around with a couple key presses. We'll talk about customizing those key presses in the next video Thanks for watching this minimal tutorial, and I hope that you have a great day Please visit films by Chris comm there's a link in description as well as a link to my get lab page for this project Where you can download all the source code and assets have a great day