A keyboard having a maximum thickness (t 3) comprising: a composite frame (104, 204, 304, 404) having a keypad area with a first frame thickness (t 1) and first average density thereby forming the supporting structure of the keyboard; and a palm rest area having a second frame thickness (t 2) and second average density, wherein the first frame thickness is different from the second frame thickness and wherein the first and second thicknesses are less than the maximum thickness of the keyboard; wherein the first average density is higher than the second average density; and wherein the composite frame includes at least two stiff shell layers each having a relatively high density (222, 224, 322, 324, 422, 423, 424) and a uniform thickness and at least one relatively low-density core layer (226, 326, 426, 427) arranged between said stiff shell layers such that said frame has said first thickness in the palm rest area and said second lower thickness than the first thickness in the keypad area; a cavity (116, 328) formed in said composite frame, said cavity (116, 328) consisting of: a first part forming a through hole in said frame in the thickness direction in the keypad area, a second part forming a through hole in said frame in the thickness direction in the palm rest area, and a third part at the back side of the frame connecting the first and second parts of said cavity (116, 328); a keypad attached to a top side of the composite frame in the keypad area covering said first part of said cavity (116, 328); a touch pad arranged to said top side of the composite frame in the palm rest area covering said second part of said cavity (116, 328); one or more electronic components oriented within said cavity, one of these components being a flexible cable that connects the keypad to a printed circuit board within said second part of said cavity and is routed through said connecting part of said cavity; and a back shim attached to a back side of the composite frame and covering the cavity (116, 328). a composite frame (104, 204, 304, 404) having a keypad area with a first frame thickness (t 1) and first average density thereby forming the supporting structure of the keyboard; and a palm rest area having a second frame thickness (t 2) and second average density, wherein the first frame thickness is different from the second frame thickness and wherein the first and second thicknesses are less than the maximum thickness of the keyboard; wherein the first average density is higher than the second average density; and wherein the composite frame includes at least two stiff shell layers each having a relatively high density (222, 224, 322, 324, 422, 423, 424) and a uniform thickness and at least one relatively low-density core layer (226, 326, 426, 427) arranged between said stiff shell layers such that said frame has said first thickness in the palm rest area and said second lower thickness than the first thickness in the keypad area; a cavity (116, 328) formed in said composite frame, said cavity (116, 328) consisting of: a first part forming a through hole in said frame in the thickness direction in the keypad area, a second part forming a through hole in said frame in the thickness direction in the palm rest area, and a third part at the back side of the frame connecting the first and second parts of said cavity (116, 328); a first part forming a through hole in said frame in the thickness direction in the keypad area, a second part forming a through hole in said frame in the thickness direction in the palm rest area, and a third part at the back side of the frame connecting the first and second parts of said cavity (116, 328); a keypad attached to a top side of the composite frame in the keypad area covering said first part of said cavity (116, 328); a touch pad arranged to said top side of the composite frame in the palm rest area covering said second part of said cavity (116, 328); one or more electronic components oriented within said cavity, one of these components being a flexible cable that connects the keypad to a printed circuit board within said second part of said cavity and is routed through said connecting part of said cavity; and a back shim attached to a back side of the composite frame and covering the cavity (116, 328).