basically, keyboards use matrix'es (matrices). if 3 buttons in a right triangle are pushed, the fourth key that makes it a square is pushed.
example:
on a fake key matrix (i dunno if this is the location of each key)
A D
B C
if buttons A, D, and B are pushed, C will be pushed even if you never touched it. that is "ghosting"