It's input_blank to initially create all the variables used by the input system (so this goes in the Create event of the new object), then input_get to update them using whatever the current active input device is (so this would go in the start of the Step event, so the variables get updated before you do anything actually controlling the player).
As for how the input variables are used: the gist of it is that there's a pair of k_ / p_ variables for each action. k_l is the current status of the 'left' input, k_atkL is the left-hand weapon attack, and so on - there's a matching "p_" variable for each "k_" variable which is how many previous steps it has been pressed, this can be used to detect a press/release or e.g. holding down a button a certain time to charge an attack.
(The global array "global.input_key" is the mapping of which key/gamepad input is used for each action, this is what is updated when you remap the controls)