"Whenever I try to acquire MouseX from MouseKeyboard in an expression,"
If I am not mistaken, I assume you did something like "MouseKeyboard.MouseX"?
If that is the case, then follow R0J0's direction. Just remove the "MouseKeyboard." and use "MouseX" or "MouseY" arbitrarily for the respective mouse positions.