 Hello and welcome to another minimal Godot tutorial Unlike the previous videos so far in this tutorial where we started off with a fresh Scene each time we're actually going to build on our last scene because we're just going to make some changes last time We created this little script here I can hit f6 to run this again There's a link in the description to my get lab page where you can get all the scripts and the assets But I can use my arrow keys to move my Player around here, but that's just the arrow keys. What if I want to use WASD right now? They don't do anything Now I could say if this button press I can give a specific button or that button or this, you know key or button or whatever But that's not a very good way to do it. Godot gives you a very nice way of doing it Let's go up to project settings here And the second tab over is input map and here you can see all the default inputs But you can also create your own input actions if we scroll down you can see here that we have ones for UI left UI right UI up UI down and you can see that there's in them They each have a key which is the left key on your keyboard So the key is for keyboard we got right, but you also see that they have device zero, which is going to be a game pad or joystick and you can see that saying button 14 which is by default on most key Gamepads is going to be left this one's 15. So we're able to link a bunch of different inputs You can create your own so I can come up here action. I can say move up I can say add and then down here It's been added to the list and I can press this plus button and I can add in a key from the keyboard a button from a joystick game controller or if it has a Directional pad that is pressure sensitive you have your joystick axes here or mouse input I'm gonna say key and I just press the key. So we're doing up. So I'm gonna hit my up arrow I'm gonna click okay, but now I'm gonna add another one I'm gonna hit key and I'm gonna hit w so now w so up and w on the keyboard both work for this If I go back to my code here, I can come in here and I can say and Should auto-complete for me when I start typing we have now in this list move up I can choose that I'll hit f6 to run this scene and You can see I have an error here. Let's go ahead and look at this You will tell you right down here when there's error. I forgot when I back spaced I forgot to put my colon here at the end of my if statement Okay, so now I'm going to hit F6 and now I should be able to hit up and he moves up or w and he moves up Down arrow still works, but we never say anything for s, but I could but let's go back into this and instead of Making that move up. I'm going to say Back to the UI up Don't forget my colon there I'm gonna go back in here project settings and if I want since I already have that set at any point I can add keys so for UI up. I can say add key W. Okay for right. I can say add key D. Okay for left. I can say add key a Okay, and for down I Can say add key s? Okay, so now with our original code here for UI right UI left UI down UI up I can use a game controller because that was already preset But if I start the game, I can now use either my down arrow or s I can use right arrow or D a Or left arrow or W or up arrow and you can add as many keys or button inputs You want to that and that keeps your code nice and short I don't have to say if this key or that key or this button or this mouse So that is how you can make your own custom input actions. Thanks for watching visit my site films by Chris comm That's Chris the K should be a link in a description as well as a link to the get lab page where you can get this project Thanks for watching and have a great day