Key swap Issue on Lenevo Thinkpad X220 Keyboard on X230

Hello Everyone,
I use Lenevo Thinkpad X230 Laptop.
Recently some keys of my laptop wasn’t working so i replaced the keyboard with a Thinkpad x220 keyboard(Classic).

everything seems to work fine but a problem occurs there,
“Delete” key works as “Home”,
“PgUp” works as “Delete”

so is there any way i could fix this things up?
i need both of these keys to do my work.Plus the keys size isnt same so i can’t change them either.
is there any way to do that with any software or can I swap these two keys values?