I made a new level where i have scritp press W,A,S,D Move the Block and script Dont Work. Can Help me?

Script:

function OnLoad()

Game.SetKeyHook("W", "PutTheBlock")

return true

end

function PutTheBlock()

x, y = Game.GetPlayerPosition()

Game.SetBlockPos("Block0", x, y -0.5 0)

end

function OnLoad()

Game.SetKeyHook("A", "PutTheBlock")

return true

end

function PutTheBlock()

x, y = Game.GetPlayerPosition()

Game.SetBlockPos("Block0", x, y -0 -0.5)

end

function OnLoad()

Game.SetKeyHook("S", "PutTheBlock")

return true

end

function PutTheBlock()

x, y = Game.GetPlayerPosition()

Game.SetBlockPos("Block0", x, y -0.5 -0)

end

function OnLoad()

Game.SetKeyHook("D", "PutTheBlock")

return true

end

function PutTheBlock()

x, y = Game.GetPlayerPosition()

Game.SetBlockPos("Block0", x, y -0 0.5)

end