Simple solution...just gotta check if the player is moving or not...by checking there velocity i believe. and check the keys there pressing at the time. if they are pressing the key to move but not then they are stuck
if u need help just pm me. but thats what i do to figure out who's stuck. Unless u absolutely need to specifically check if there stuck in specific things...like walls ceilings or floors...this is the way to go.