Trouble with GameKeys module

For some reason, this script is being useless, any reasons why?
Anyone experienced with the GameKeys module, at all?

import GameLogic
import GameKeys

KX_NO_INPUTSTATUS = 0
KX_JUSTACTIVATED = 1
KX_ACTIVE = 2
KX_JUSTRELEASED = 3
               
co = GameLogic.getCurrentController()
sensor = co.getSensor('Keyboard')
act = co.getActuator('Act')

keylist = sensor.getPressedKeys()

for key in keylist:
	if key[1] == KX_JUSTACTIVATED:
		if key[0] == GameKeys.WKEY:
			GameLogic.addActiveActuator(act, 1)
		if key[0] == GameKeys.SKEY:
			
		if key[0] == GameKeys.AKEY:
			
		if key[0] == GameKeys.DKEY:

Enable ‘All Keys’ on the Keyboard sensor.
KX_ACTIVE doesn’t work for some reason. I’m digging into it. You should search the forum as well. :stuck_out_tongue: