You can just create variable inside your KinematicBody2D. It will then be available to all functions within your KinematicBody2D.
myVar = "was input"
If you want variable that will be shared only between those two functions – I don't think that's possible. At last not if one of the functions isn't calling another (and in this case you don't want to do that).