Godot takes care of input buffering/handling, you just need to ask for it correctly at correct places.
But I’m sure you’d figure that out eventually if you had enough time, nice game regardless :)