How would i make skills table in modulescript?

So im trying to make skills, and im using a modulescript. But im not sure what to do, like how would i know what key the want to equip the skill in, or how will the script know if a skill is unequipped?
Heres the script:

local skillsmodule = {}

skillsmodule.Table = {
	[Enum.KeyCode] = "Energy blast",
	[Enum.KeyCode] = "Rock blast"
} 

return skillsmodule

One way would be to create an array that tracks players assigned keys and updates the keys assignment. Including the skill name will allow you to re-map the key to another key later on in code.

e.g

local skills = {EnergyBlast = "Energy Blast", RockBlast = "Rock Blast"}
local hotkeys = {}
hotkeys[0] = {
    keyByte = Enum.KeyCode.One,
    skillName = skills.EnergyBlast,
    isAssigned = true
}

print("KeyCode Byte: ", hotkeys[0].keyByte) -- Can check against Enum.KeyCode
print("SkillName: ", hotkeys[0].skillName) -- Can check against a skills table
print("isAssigned: ", hotkeys[0].isAssigned) -- Can check whether the key is in use

Hopefully that gives you an idea.