It should not make a difference if it is a laptop or desktop, except desktops may not be set to hibernate since it does not need to keep a battery charged.
I will assume your system wakes from sleep normally with the keyboard. If it does not, there are settings also in Device Manager on the Power Management tab for the device, such as keyboard.